package org.example.query;

import java.time.LocalDateTime;
import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * 用户操作日志查询条件类
 */
@Data
public class UserLogQuery {
    private Integer userId;

    @Pattern(regexp = "register|login|logout", message = "操作类型必须是 register、login 或 logout")
    private String operationType;

    private LocalDateTime startTime;

    private LocalDateTime endTime;
}